package cn.zengchen233.dao.impl;

import cn.zengchen233.dao.dao.UserDao;
import cn.zengchen233.dao.service.UserService;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @author zengchen
 * @title UserServiceImpl
 * @description TODO
 * @create 2023/1/6 10:15
 */
public class UserServiceImpl implements UserService {

    private UserDao userDao;

    public UserServiceImpl(UserDao userDao) {
        this.userDao = userDao;
    }

    public UserServiceImpl() {
    }

    //public void setUserDao(UserDao userDao) {
    //    this.userDao = userDao;
    //}

    @Override
    public void save() {
        userDao.save();
    }
}
